<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript">
<!--
function bal_main_changeTab(type,method){
	if($("#"+type+"_changeFlag", navTab.getCurrentPanel()).val() != "changed"){
		// 仅在首次点击时异步加载页面
		$("#"+type, navTab.getCurrentPanel()).loadUrl("bal_"+method+".action",{}, function(){
			$("#"+type, navTab.getCurrentPanel()).find("[layoutH]").layoutH();
		});
		$("#"+type+"_changeFlag", navTab.getCurrentPanel()).val("changed");
	}
}

if('${firstTab}'!=''){
	bal_main_changeTab('${firstRel}','${firstTab}');
}

//-->
</script>
<div class="pageContent">
	<div class="tabs">
		<div class="tabsHeader">
			<div class="tabsHeaderContent">
				<ul>
					<c:if test="${!empty balTelfeeDriveList}">
						<li onclick="javascript:bal_main_changeTab('bal_telfee_new_list','telfeeNewList');"><a href="javascript:;"><span> 话费激励学校结算</span></a></li>
					</c:if>
					<c:if test="${!empty balCashDriveList}">
						<li onclick="javascript:bal_main_changeTab('bal_cash_new_list','cashNewList');"><a href="javascript:;"><span> 现金激励学校结算</span></a></li>
					</c:if>
					<c:if test="${!empty BalCustMgrList}">
						<li onclick="javascript:bal_main_changeTab('bal_custmgr_new_list','custMgrNewList');"><a href="javascript:;"><span> 移动客户经理结算</span></a></li>
					</c:if> 
					<c:if test="${!empty balBuMgrList}">
						<li onclick="javascript:bal_main_changeTab('bal_bumgr_new_list','buMgrNewList');"><a href="javascript:;"><span> 行业经理季度结算</span></a></li>
					</c:if>
					
				</ul>
			</div>
		</div>
		<div class="tabsContent" layoutH="34" style="padding: 0px;">
			<c:if test="${empty balTelfeeDriveList && empty balCashDriveList && empty BalCustMgrList && empty balBuMgrList }">
				<span style="color:red;">您当前暂无可供申请单据！</span>
			</c:if>
			
			<c:if test="${!empty balTelfeeDriveList}">
				<div>
					<input id="bal_telfee_new_list_changeFlag" type="hidden" value=""> 
					<div id="bal_telfee_new_list" class="unitBox" ></div>
				</div>
			</c:if>
			
			<c:if test="${!empty balCashDriveList}">
				<div>
					<input id="bal_cash_new_list_changeFlag" type="hidden" value=""> 
					<div id="bal_cash_new_list" class="unitBox" ></div>
				</div>
			</c:if>
			
			<c:if test="${!empty BalCustMgrList}">
				<div>
					<input id="bal_custmgr_new_list_changeFlag" type="hidden" value=""> 
					<div id="bal_custmgr_new_list" class="unitBox" ></div>
				</div>
			</c:if> 
			
			<c:if test="${!empty balBuMgrList}">
				<div>
					<input id="bal_bumgr_new_list_changeFlag" type="hidden" value=""> 
					<div id="bal_bumgr_new_list" class="unitBox" ></div>
				</div>
			</c:if>
			
		</div>
		<div class="tabsFooter">
			<div class="tabsFooterContent"></div>
		</div>
	</div>
</div>
